Repository navigation
Add engine updates for llama.cpp, LM Studio, and vLLM - #237
NV-sschneider wants to merge 12 commits into
Conversation
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
Signed-off-by: Seth Schneider <sschneider@nvidia.com>
| } | ||
|
|
||
| func llamaModelsOutsideInstall(st *engineState, args, env []string) bool { | ||
| stores := []string{environmentValue(env, "LLAMA_CACHE"), environmentValue(env, "LLAMA_ARG_MODELS_DIR"), |
There was a problem hiding this comment.
[P1] Protect multimodal projector files before replacing the llama.cpp installation
llamaModelsOutsideInstall protects the main model, cache and preset paths, but omits LLAMA_ARG_MMPROJ and the --mmproj / -mm options. A user can therefore configure a projector inside the managed installation, pass the managed-update eligibility check, and lose that file when the old installation is replaced and its backup is cleaned up.
I reproduced the file loss with genuine older-to-newer llama.cpp vendor upgrades on both DGX Spark and macOS: while the engine was OFF, I placed a disposable projector preservation file inside the managed install directory and set LLAMA_ARG_MMPROJ to its absolute path. The update succeeded and the version advanced, but the configured file disappeared. No real projector weights were used or destroyed in this test.
Proposed fix: include LLAMA_ARG_MMPROJ, --mmproj and -mm in the existing modelStoresOutsideInstall protection, for both saved launch configuration and running-process inputs. Apply the same filesystem-link checks used for the main model. Reject an unsafe managed update before replacing the installation so that the projector remains intact.
Please add regression cases in llamacpp_update_test.go for the environment setting, long and short argument forms, a projector reached through a filesystem link, and an external projector path that should remain eligible. The unsafe cases should retain the original installation and projector file.
Description
The local engine update controls now work with three more engines. PAIR determines the applicable release from each engine’s installation and packaging.
PR 2 of 4. Merge after #236. Review this PR’s changes.
Merge order is #236 → #237 → #238 → #239.
Release intent
Changelog title
Show and apply updates for llama.cpp, LM Studio, and vLLM
Changelog body
Bumps
Scope
Validation
npm run service-contracts:checkpassed.Risk
The three engines use different release and installation mechanisms. Updating a running managed engine can interrupt inference. The vLLM updater checks model storage before replacing the environment and restores the previous environment if the replacement fails.
Checklist